.class Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity$9;
.super Ljava/lang/Object;
.source "NiceAppCommentDetailActivity.java"

# interfaces
.implements Lretrofit/Callback;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;->onDeleteCommentReplay(Lcom/brixd/niceapp/model/CommentModel;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Ljava/lang/Object;",
        "Lretrofit/Callback",
        "<",
        "Lorg/json/JSONObject;",
        ">;"
    }
.end annotation


# instance fields
.field final synthetic this$0:Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;

.field final synthetic val$commentModel:Lcom/brixd/niceapp/model/CommentModel;


# direct methods
.method constructor <init>(Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;Lcom/brixd/niceapp/model/CommentModel;)V
    .registers 3
    .param p1, "this$0"    # Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;

    .prologue
    .line 338
    iput-object p1, p0, Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity$9;->this$0:Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;

    iput-object p2, p0, Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity$9;->val$commentModel:Lcom/brixd/niceapp/model/CommentModel;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public failure(Lretrofit/RetrofitError;)V
    .registers 4
    .param p1, "arg0"    # Lretrofit/RetrofitError;

    .prologue
    .line 342
    iget-object v0, p0, Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity$9;->this$0:Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;

    const v1, 0x7f0c0058

    invoke-virtual {v0, v1}, Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/brixd/niceapp/util/ToastUtils;->show(Ljava/lang/String;)V

    .line 343
    return-void
.end method

.method public bridge synthetic success(Ljava/lang/Object;Lretrofit/client/Response;)V
    .registers 3

    .prologue
    .line 338
    check-cast p1, Lorg/json/JSONObject;

    invoke-virtual {p0, p1, p2}, Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity$9;->success(Lorg/json/JSONObject;Lretrofit/client/Response;)V

    return-void
.end method

.method public success(Lorg/json/JSONObject;Lretrofit/client/Response;)V
    .registers 7
    .param p1, "arg0"    # Lorg/json/JSONObject;
    .param p2, "arg1"    # Lretrofit/client/Response;

    .prologue
    .line 347
    iget-object v1, p0, Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity$9;->this$0:Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;

    # getter for: Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;->mCommentDetails:Ljava/util/List;
    invoke-static {v1}, Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;->access$1500(Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;)Ljava/util/List;

    move-result-object v1

    iget-object v2, p0, Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity$9;->val$commentModel:Lcom/brixd/niceapp/model/CommentModel;

    invoke-interface {v1, v2}, Ljava/util/List;->remove(Ljava/lang/Object;)Z

    .line 348
    iget-object v1, p0, Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity$9;->this$0:Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;

    # getter for: Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;->mCurComment:Lcom/brixd/niceapp/model/CommentModel;
    invoke-static {v1}, Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;->access$900(Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;)Lcom/brixd/niceapp/model/CommentModel;

    move-result-object v1

    invoke-virtual {v1}, Lcom/brixd/niceapp/model/CommentModel;->getReplayTimes()I

    move-result v1

    add-int/lit8 v0, v1, -0x1

    .line 349
    .local v0, "replayTimes":I
    if-gez v0, :cond_1a

    .line 350
    const/4 v0, 0x0

    .line 352
    :cond_1a
    iget-object v1, p0, Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity$9;->this$0:Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;

    # getter for: Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;->mCurComment:Lcom/brixd/niceapp/model/CommentModel;
    invoke-static {v1}, Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;->access$900(Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;)Lcom/brixd/niceapp/model/CommentModel;

    move-result-object v1

    invoke-virtual {v1, v0}, Lcom/brixd/niceapp/model/CommentModel;->setReplayTimes(I)V

    .line 353
    iget-object v1, p0, Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity$9;->this$0:Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;

    # getter for: Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;->mCommentTimesTxt:Landroid/widget/TextView;
    invoke-static {v1}, Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;->access$1600(Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;)Landroid/widget/TextView;

    move-result-object v1

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v3, p0, Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity$9;->this$0:Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;

    # getter for: Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;->mCurComment:Lcom/brixd/niceapp/model/CommentModel;
    invoke-static {v3}, Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;->access$900(Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;)Lcom/brixd/niceapp/model/CommentModel;

    move-result-object v3

    invoke-virtual {v3}, Lcom/brixd/niceapp/model/CommentModel;->getReplayTimes()I

    move-result v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string v3, ""

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 354
    iget-object v1, p0, Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity$9;->this$0:Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;

    # getter for: Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;->mAdapter:Lcom/brixd/niceapp/activity/fragment/adapter/CommentDetailAdapter;
    invoke-static {v1}, Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;->access$1700(Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;)Lcom/brixd/niceapp/activity/fragment/adapter/CommentDetailAdapter;

    move-result-object v1

    invoke-virtual {v1}, Lcom/brixd/niceapp/activity/fragment/adapter/CommentDetailAdapter;->notifyDataSetChanged()V

    .line 356
    iget-object v1, p0, Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity$9;->this$0:Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;

    const v2, 0x7f0c0059

    invoke-virtual {v1, v2}, Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Lcom/brixd/niceapp/util/ToastUtils;->show(Ljava/lang/String;)V

    .line 357
    iget-object v1, p0, Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity$9;->this$0:Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;

    const/4 v2, 0x1

    # setter for: Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;->mIsDirty:Z
    invoke-static {v1, v2}, Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;->access$1302(Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;Z)Z

    .line 358
    return-void
.end method
